GestureDetectorCompat
constructor(@NonNull context: Context, @NonNull listener: GestureDetector.OnGestureListener)(source)
Creates a GestureDetectorCompat with the supplied listener. As usual, you may only use this constructor from a UI thread.
Parameters
context
the application's context
listener
the listener invoked for all the callbacks, this must not be null.
See also
constructor(@NonNull context: Context, @NonNull listener: GestureDetector.OnGestureListener, @Nullable handler: Handler)(source)
Creates a GestureDetectorCompat with the supplied listener. As usual, you may only use this constructor from a UI thread.
Parameters
context
the application's context
listener
the listener invoked for all the callbacks, this must not be null.
handler
the handler that will be used for posting deferred messages